<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();
?>

<h2><?php __e('SVN Update'); ?></h2>

<form action="<?php echo path(); ?>" method="post">
	<fieldset>
		<?php if ($executed) { ?>
		<h3><?php __e('Executed update'); ?><h3>

		<pre><?php echo $executed; ?></pre>
		<?php } ?>

		<p>
			<input type="button" name="reload" value="<?php __e('Reload'); ?>" onclick="location.reload();" />
			<input type="submit" name="phpcan_action[svn-status]" value="<?php __e('Check SVN STATUS'); ?>" />
			<input type="submit" name="phpcan_action[svn-update]" value="<?php __e('Launch SVN UPDATE'); ?>" />
		</p>
	</fieldset>
</form>
